package com.aaa.service.impl;

import com.aaa.entity.MyPage;
import com.aaa.service.TRoleService;
import com.aaa.dao.TRoleMapper;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * (TRole)表服务实现类
 *
 * @author makejava
 * @since 2022-10-21 16:41:11
 */
@Service
public class TRoleServiceImpl implements TRoleService {
   @Autowired
   private TRoleMapper tRoleDao;

   @Override
   public PageInfo findAll(MyPage myPage) {
      PageHelper.startPage(myPage.getPage(),myPage.getLimit());
      return new PageInfo(tRoleDao.selectAll());
   }
}

